﻿using UnityEngine;
using System.Collections;

public class RandomBoxUnitCard : MonoBehaviour {

	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
	
	}

	void OnClick()
	{
//		GetComponent<MyUnitCard>().selectedMark.SetActive(true);
		transform.parent.GetComponent<RandomBoxSelectWindow>().SelecteBox(GetComponent<MyUnitCard>().index, GetComponent<MyUnitCard>().index, GetComponent<MyUnitCard>().selectedMark);
	}
}
